package com.mrdeer.user.convert;

import com.mrdeer.user.api.dto.tenant.CreateTenantRequestDTO;
import com.mrdeer.user.api.entity.Tenant;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 17:47
 */
@Mapper
public interface TenantRequestConvert {

    TenantRequestConvert INSTANCE = Mappers.getMapper(TenantRequestConvert.class);

    CreateTenantRequestDTO entity2Dto(Tenant entity);

    Tenant dto2Entity(CreateTenantRequestDTO dto);
}
